﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace GPSCrowdSource.DataStructures {
  
  /// <summary>
  /// Class that contains various constants and values.
  /// </summary>
  public abstract class GeoConstants {
    
    /// <summary>
    /// Maximum time (in seconds) a train can be late before being considered not on time.
    /// </summary>
    public const int MAX_ONTIME_SECONDS = 59;

    /// <summary>
    /// Contains the path to the database lightrail file.
    /// </summary>
    public const String RAIL_DB =  @"C:\Users\Shannon\Documents\gps-track\Data\RailDB";

    /// <summary>
    /// Location of country shapes file.
    /// </summary>
    public const String  RAIL_LINES = @"C:\Users\Shannon\Desktop\Charts\ShapeData\RTD_LIGHTRAILLINES.shp";
    
    /// <summary>
    /// Radians to degrees conversion
    /// </summary>
    public const double R2D = 57.295779513082320876798154814105;
  
    /// <summary>
    /// Degress to radians converson
    /// </summary>
    public const double D2R = 0.01745329251994329576923690768489;

    /// <summary>
    /// Earth radius in feet
    /// </summary>
    //public const double EARTH_RAD_WGS84_FT = 20856504.3428902;
    
    public const double EARTH_RAD_WGS84_FT = 6378137.0d*3.281d;

    /// <summary>
    /// Using WGS84 mean radius of earth.
    /// </summary>
    public static float EARTH_RADIUS_NM =  (float)3432.5391515171494024430575751893;

    /// <summary>
    /// Conversion factor for converting from degrees to feet.
    /// </summary>
    public static float DEG2FT = (float)EARTH_RAD_WGS84_FT;
    }

  }
